﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="FeedbackSurveyManagement.aspx.cs" Inherits="Wicresoft.RDW.Feedback.FeedbackSurveyManagement" %>

<%@ Register Src="../UserControls/PagerControl.ascx" TagName="PagerBasicControl"
    TagPrefix="uc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="center">
        <div class="box">
            <div class="main_title">
                <h2>
                    <%=Resources.NameResource.FeedbackSurvey_MainTitle %></h2>
            </div>
            <div class="HistoryApplicationContent">
                <asp:GridView ID="gvFeedbackSurvey" runat="server" AutoGenerateColumns="false" DataKeyNames="FeedbackId"
                    HeaderStyle-CssClass="dcTableHeader" RowStyle-CssClass="dcTableAlternatingItem"
                    AlternatingRowStyle-CssClass="dcTableItem" Width="100%" OnRowDataBound="gvFeedbackSurvey_RowDataBound"
                    OnRowUpdating="gvFeedbackSurvey_RowUpdating">
                    <Columns>
                        <asp:BoundField ItemStyle-Width="4%" />
                        <asp:TemplateField ItemStyle-Width="20%">
                            <ItemTemplate>
                                <asp:Label ID="lblApplyName" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-Width="25%">
                            <ItemTemplate>
                                <asp:Label ID="lblFeedbackName" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-Width="20%">
                            <ItemTemplate>
                                <asp:Label ID="lblCreatTime" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-Width="15%">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkIsPublished" runat="server" AutoPostBack="true" OnCheckedChanged="chkIsPublished_OnCheckedChanged"
                                    Key='<%# Eval("FeedbackId") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-Width="15%">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkbtnViewResult" CssClass="CommandButton" runat="server" CommandName="Update" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EmptyDataTemplate>
                        <table width="100%">
                            <tr class="dcTableHeader">
                                <th width="4%">
                                    <%=Resources.NameResource.No%>
                                </th>
                                <th width="20%">
                                    <%=Resources.NameResource.Request_RequestUserID%>
                                </th>
                                <th width="25%">
                                    <%=Resources.NameResource.Visit_CompanyName%>
                                </th>
                                <th width="20%">
                                    <%=Resources.NameResource.Request_DataTime%>
                                </th>
                                <th width="15%">
                                    <%=Resources.NameResource.IsPublished%>
                                </th>
                                <th width="15%">
                                    <%=Resources.ManageResource.mgr_lblAction%>
                                </th>
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                </asp:GridView>
                <uc:PagerBasicControl ID="pager" runat="server" PageSize="10" />
            </div>
        </div>
    </div>
    <div class="clear">
    </div>
</asp:Content>
